//
//  MAnnotation.m
//  Speedater
//
//  Created by NgoThang on 11/17/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "MAnnotation.h"

@implementation MAnnotation

@synthesize coordinate;
@synthesize isRoot, isMarked;
@synthesize username;

- (id)init
{
    self = [super init];
    if (self) {
        // Initialization code here.
    }
    
    return self;
}

- (void)dealloc
{
    //NSLog(@"MAnnotation -> dealloc");
    self.username = nil;
    [super dealloc];
}
    

- (NSString *)subtitle
{
	return @"";
}

- (NSString *)title
{
    return username;
}

- (id)initWithCoordinate:(CLLocationCoordinate2D)c andUsername:(NSString *)u andIsRoot:(BOOL)ir;
{
    self = [super init];
    if (self) {
        coordinate = c;
        username = [[NSString alloc] initWithString:u];
        isRoot = ir;
    }
	return self;
}

@end
